Optimal. Leaf size=398 \[ -\frac {2 a b n x}{e^4}+\frac {2 b^2 n^2 x}{e^4}-\frac {b^2 d^2 n^2}{3 e^5 (d+e x)}-\frac {b^2 d n^2 \log (x)}{3 e^5}-\frac {2 b^2 n x \log \left (c x^n\right )}{e^4}+\frac {b d^3 n \left (a+b \log \left (c x^n\right )\right )}{3 e^5 (d+e x)^2}+\frac {10 b d n x \left (a+b \log \left (c x^n\right )\right )}{3 e^4 (d+e x)}-\frac {5 d \left (a+b \log \left (c x^n\right )\right )^2}{3 e^5}+\frac {x \left (a+b \log \left (c x^n\right )\right )^2}{e^4}-\frac {d^4 \left (a+b \log \left (c x^n\right )\right )^2}{3 e^5 (d+e x)^3}+\frac {2 d^3 \left (a+b \log \left (c x^n\right )\right )^2}{e^5 (d+e x)^2}+\frac {6 d x \left (a+b \log \left (c x^n\right )\right )^2}{e^4 (d+e x)}-\frac {3 b^2 d n^2 \log (d+e x)}{e^5}-\frac {26 b d n \left (a+b \log \left (c x^n\right )\right ) \log \left (1+\frac {e x}{d}\right )}{3 e^5}-\frac {4 d \left (a+b \log \left (c x^n\right )\right )^2 \log \left (1+\frac {e x}{d}\right )}{e^5}-\frac {26 b^2 d n^2 \text {Li}_2\left (-\frac {e x}{d}\right )}{3 e^5}-\frac {8 b d n \left (a+b \log \left (c x^n\right )\right ) \text {Li}_2\left (-\frac {e x}{d}\right )}{e^5}+\frac {8 b^2 d n^2 \text {Li}_3\left (-\frac {e x}{d}\right )}{e^5} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.51, antiderivative size = 430, normalized size of antiderivative = 1.08, number of
steps used = 27, number of rules used = 14, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.609, Rules used
= {2395, 2333, 2332, 2356, 2389, 2379, 2438, 2351, 31, 46, 2355, 2354, 2421, 6724}
\begin {gather*} -\frac {8 b d n \text {PolyLog}\left (2,-\frac {e x}{d}\right ) \left (a+b \log \left (c x^n\right )\right )}{e^5}-\frac {10 b^2 d n^2 \text {PolyLog}\left (2,-\frac {d}{e x}\right )}{3 e^5}-\frac {12 b^2 d n^2 \text {PolyLog}\left (2,-\frac {e x}{d}\right )}{e^5}+\frac {8 b^2 d n^2 \text {PolyLog}\left (3,-\frac {e x}{d}\right )}{e^5}-\frac {d^4 \left (a+b \log \left (c x^n\right )\right )^2}{3 e^5 (d+e x)^3}+\frac {2 d^3 \left (a+b \log \left (c x^n\right )\right )^2}{e^5 (d+e x)^2}+\frac {b d^3 n \left (a+b \log \left (c x^n\right )\right )}{3 e^5 (d+e x)^2}+\frac {10 b d n \log \left (\frac {d}{e x}+1\right ) \left (a+b \log \left (c x^n\right )\right )}{3 e^5}-\frac {4 d \log \left (\frac {e x}{d}+1\right ) \left (a+b \log \left (c x^n\right )\right )^2}{e^5}-\frac {12 b d n \log \left (\frac {e x}{d}+1\right ) \left (a+b \log \left (c x^n\right )\right )}{e^5}+\frac {6 d x \left (a+b \log \left (c x^n\right )\right )^2}{e^4 (d+e x)}+\frac {10 b d n x \left (a+b \log \left (c x^n\right )\right )}{3 e^4 (d+e x)}+\frac {x \left (a+b \log \left (c x^n\right )\right )^2}{e^4}-\frac {2 a b n x}{e^4}-\frac {2 b^2 n x \log \left (c x^n\right )}{e^4}-\frac {b^2 d^2 n^2}{3 e^5 (d+e x)}-\frac {b^2 d n^2 \log (x)}{3 e^5}-\frac {3 b^2 d n^2 \log (d+e x)}{e^5}+\frac {2 b^2 n^2 x}{e^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 46
Rule 2332
Rule 2333
Rule 2351
Rule 2354
Rule 2355
Rule 2356
Rule 2379
Rule 2389
Rule 2395
Rule 2421
Rule 2438
Rule 6724
Rubi steps
\begin {align*} \int \frac {x^4 \left (a+b \log \left (c x^n\right )\right )^2}{(d+e x)^4} \, dx &=\int \left (\frac {\left (a+b \log \left (c x^n\right )\right )^2}{e^4}+\frac {d^4 \left (a+b \log \left (c x^n\right )\right )^2}{e^4 (d+e x)^4}-\frac {4 d^3 \left (a+b \log \left (c x^n\right )\right )^2}{e^4 (d+e x)^3}+\frac {6 d^2 \left (a+b \log \left (c x^n\right )\right )^2}{e^4 (d+e x)^2}-\frac {4 d \left (a+b \log \left (c x^n\right )\right )^2}{e^4 (d+e x)}\right ) \, dx\\ &=\frac {\int \left (a+b \log \left (c x^n\right )\right )^2 \, dx}{e^4}-\frac {(4 d) \int \frac {\left (a+b \log \left (c x^n\right )\right )^2}{d+e x} \, dx}{e^4}+\frac {\left (6 d^2\right ) \int \frac {\left (a+b \log \left (c x^n\right )\right )^2}{(d+e x)^2} \, dx}{e^4}-\frac {\left (4 d^3\right ) \int \frac {\left (a+b \log \left (c x^n\right )\right )^2}{(d+e x)^3} \, dx}{e^4}+\frac {d^4 \int \frac {\left (a+b \log \left (c x^n\right )\right )^2}{(d+e x)^4} \, dx}{e^4}\\ &=\frac {x \left (a+b \log \left (c x^n\right )\right )^2}{e^4}-\frac {d^4 \left (a+b \log \left (c x^n\right )\right )^2}{3 e^5 (d+e x)^3}+\frac {2 d^3 \left (a+b \log \left (c x^n\right )\right )^2}{e^5 (d+e x)^2}+\frac {6 d x \left (a+b \log \left (c x^n\right )\right )^2}{e^4 (d+e x)}-\frac {4 d \left (a+b \log \left (c x^n\right )\right )^2 \log \left (1+\frac {e x}{d}\right )}{e^5}+\frac {(8 b d n) \int \frac {\left (a+b \log \left (c x^n\right )\right ) \log \left (1+\frac {e x}{d}\right )}{x} \, dx}{e^5}-\frac {\left (4 b d^3 n\right ) \int \frac {a+b \log \left (c x^n\right )}{x (d+e x)^2} \, dx}{e^5}+\frac {\left (2 b d^4 n\right ) \int \frac {a+b \log \left (c x^n\right )}{x (d+e x)^3} \, dx}{3 e^5}-\frac {(2 b n) \int \left (a+b \log \left (c x^n\right )\right ) \, dx}{e^4}-\frac {(12 b d n) \int \frac {a+b \log \left (c x^n\right )}{d+e x} \, dx}{e^4}\\ &=-\frac {2 a b n x}{e^4}+\frac {x \left (a+b \log \left (c x^n\right )\right )^2}{e^4}-\frac {d^4 \left (a+b \log \left (c x^n\right )\right )^2}{3 e^5 (d+e x)^3}+\frac {2 d^3 \left (a+b \log \left (c x^n\right )\right )^2}{e^5 (d+e x)^2}+\frac {6 d x \left (a+b \log \left (c x^n\right )\right )^2}{e^4 (d+e x)}-\frac {12 b d n \left (a+b \log \left (c x^n\right )\right ) \log \left (1+\frac {e x}{d}\right )}{e^5}-\frac {4 d \left (a+b \log \left (c x^n\right )\right )^2 \log \left (1+\frac {e x}{d}\right )}{e^5}-\frac {8 b d n \left (a+b \log \left (c x^n\right )\right ) \text {Li}_2\left (-\frac {e x}{d}\right )}{e^5}-\frac {\left (4 b d^2 n\right ) \int \frac {a+b \log \left (c x^n\right )}{x (d+e x)} \, dx}{e^5}+\frac {\left (2 b d^3 n\right ) \int \frac {a+b \log \left (c x^n\right )}{x (d+e x)^2} \, dx}{3 e^5}-\frac {\left (2 b^2 n\right ) \int \log \left (c x^n\right ) \, dx}{e^4}+\frac {\left (4 b d^2 n\right ) \int \frac {a+b \log \left (c x^n\right )}{(d+e x)^2} \, dx}{e^4}-\frac {\left (2 b d^3 n\right ) \int \frac {a+b \log \left (c x^n\right )}{(d+e x)^3} \, dx}{3 e^4}+\frac {\left (8 b^2 d n^2\right ) \int \frac {\text {Li}_2\left (-\frac {e x}{d}\right )}{x} \, dx}{e^5}+\frac {\left (12 b^2 d n^2\right ) \int \frac {\log \left (1+\frac {e x}{d}\right )}{x} \, dx}{e^5}\\ &=-\frac {2 a b n x}{e^4}+\frac {2 b^2 n^2 x}{e^4}-\frac {2 b^2 n x \log \left (c x^n\right )}{e^4}+\frac {b d^3 n \left (a+b \log \left (c x^n\right )\right )}{3 e^5 (d+e x)^2}+\frac {4 b d n x \left (a+b \log \left (c x^n\right )\right )}{e^4 (d+e x)}+\frac {x \left (a+b \log \left (c x^n\right )\right )^2}{e^4}-\frac {d^4 \left (a+b \log \left (c x^n\right )\right )^2}{3 e^5 (d+e x)^3}+\frac {2 d^3 \left (a+b \log \left (c x^n\right )\right )^2}{e^5 (d+e x)^2}+\frac {6 d x \left (a+b \log \left (c x^n\right )\right )^2}{e^4 (d+e x)}-\frac {12 b d n \left (a+b \log \left (c x^n\right )\right ) \log \left (1+\frac {e x}{d}\right )}{e^5}-\frac {4 d \left (a+b \log \left (c x^n\right )\right )^2 \log \left (1+\frac {e x}{d}\right )}{e^5}-\frac {12 b^2 d n^2 \text {Li}_2\left (-\frac {e x}{d}\right )}{e^5}-\frac {8 b d n \left (a+b \log \left (c x^n\right )\right ) \text {Li}_2\left (-\frac {e x}{d}\right )}{e^5}+\frac {8 b^2 d n^2 \text {Li}_3\left (-\frac {e x}{d}\right )}{e^5}-\frac {(4 b d n) \int \frac {a+b \log \left (c x^n\right )}{x} \, dx}{e^5}+\frac {\left (2 b d^2 n\right ) \int \frac {a+b \log \left (c x^n\right )}{x (d+e x)} \, dx}{3 e^5}+\frac {(4 b d n) \int \frac {a+b \log \left (c x^n\right )}{d+e x} \, dx}{e^4}-\frac {\left (2 b d^2 n\right ) \int \frac {a+b \log \left (c x^n\right )}{(d+e x)^2} \, dx}{3 e^4}-\frac {\left (b^2 d^3 n^2\right ) \int \frac {1}{x (d+e x)^2} \, dx}{3 e^5}-\frac {\left (4 b^2 d n^2\right ) \int \frac {1}{d+e x} \, dx}{e^4}\\ &=-\frac {2 a b n x}{e^4}+\frac {2 b^2 n^2 x}{e^4}-\frac {2 b^2 n x \log \left (c x^n\right )}{e^4}+\frac {b d^3 n \left (a+b \log \left (c x^n\right )\right )}{3 e^5 (d+e x)^2}+\frac {10 b d n x \left (a+b \log \left (c x^n\right )\right )}{3 e^4 (d+e x)}-\frac {2 d \left (a+b \log \left (c x^n\right )\right )^2}{e^5}+\frac {x \left (a+b \log \left (c x^n\right )\right )^2}{e^4}-\frac {d^4 \left (a+b \log \left (c x^n\right )\right )^2}{3 e^5 (d+e x)^3}+\frac {2 d^3 \left (a+b \log \left (c x^n\right )\right )^2}{e^5 (d+e x)^2}+\frac {6 d x \left (a+b \log \left (c x^n\right )\right )^2}{e^4 (d+e x)}-\frac {4 b^2 d n^2 \log (d+e x)}{e^5}-\frac {8 b d n \left (a+b \log \left (c x^n\right )\right ) \log \left (1+\frac {e x}{d}\right )}{e^5}-\frac {4 d \left (a+b \log \left (c x^n\right )\right )^2 \log \left (1+\frac {e x}{d}\right )}{e^5}-\frac {12 b^2 d n^2 \text {Li}_2\left (-\frac {e x}{d}\right )}{e^5}-\frac {8 b d n \left (a+b \log \left (c x^n\right )\right ) \text {Li}_2\left (-\frac {e x}{d}\right )}{e^5}+\frac {8 b^2 d n^2 \text {Li}_3\left (-\frac {e x}{d}\right )}{e^5}+\frac {(2 b d n) \int \frac {a+b \log \left (c x^n\right )}{x} \, dx}{3 e^5}-\frac {(2 b d n) \int \frac {a+b \log \left (c x^n\right )}{d+e x} \, dx}{3 e^4}-\frac {\left (4 b^2 d n^2\right ) \int \frac {\log \left (1+\frac {e x}{d}\right )}{x} \, dx}{e^5}-\frac {\left (b^2 d^3 n^2\right ) \int \left (\frac {1}{d^2 x}-\frac {e}{d (d+e x)^2}-\frac {e}{d^2 (d+e x)}\right ) \, dx}{3 e^5}+\frac {\left (2 b^2 d n^2\right ) \int \frac {1}{d+e x} \, dx}{3 e^4}\\ &=-\frac {2 a b n x}{e^4}+\frac {2 b^2 n^2 x}{e^4}-\frac {b^2 d^2 n^2}{3 e^5 (d+e x)}-\frac {b^2 d n^2 \log (x)}{3 e^5}-\frac {2 b^2 n x \log \left (c x^n\right )}{e^4}+\frac {b d^3 n \left (a+b \log \left (c x^n\right )\right )}{3 e^5 (d+e x)^2}+\frac {10 b d n x \left (a+b \log \left (c x^n\right )\right )}{3 e^4 (d+e x)}-\frac {5 d \left (a+b \log \left (c x^n\right )\right )^2}{3 e^5}+\frac {x \left (a+b \log \left (c x^n\right )\right )^2}{e^4}-\frac {d^4 \left (a+b \log \left (c x^n\right )\right )^2}{3 e^5 (d+e x)^3}+\frac {2 d^3 \left (a+b \log \left (c x^n\right )\right )^2}{e^5 (d+e x)^2}+\frac {6 d x \left (a+b \log \left (c x^n\right )\right )^2}{e^4 (d+e x)}-\frac {3 b^2 d n^2 \log (d+e x)}{e^5}-\frac {26 b d n \left (a+b \log \left (c x^n\right )\right ) \log \left (1+\frac {e x}{d}\right )}{3 e^5}-\frac {4 d \left (a+b \log \left (c x^n\right )\right )^2 \log \left (1+\frac {e x}{d}\right )}{e^5}-\frac {8 b^2 d n^2 \text {Li}_2\left (-\frac {e x}{d}\right )}{e^5}-\frac {8 b d n \left (a+b \log \left (c x^n\right )\right ) \text {Li}_2\left (-\frac {e x}{d}\right )}{e^5}+\frac {8 b^2 d n^2 \text {Li}_3\left (-\frac {e x}{d}\right )}{e^5}+\frac {\left (2 b^2 d n^2\right ) \int \frac {\log \left (1+\frac {e x}{d}\right )}{x} \, dx}{3 e^5}\\ &=-\frac {2 a b n x}{e^4}+\frac {2 b^2 n^2 x}{e^4}-\frac {b^2 d^2 n^2}{3 e^5 (d+e x)}-\frac {b^2 d n^2 \log (x)}{3 e^5}-\frac {2 b^2 n x \log \left (c x^n\right )}{e^4}+\frac {b d^3 n \left (a+b \log \left (c x^n\right )\right )}{3 e^5 (d+e x)^2}+\frac {10 b d n x \left (a+b \log \left (c x^n\right )\right )}{3 e^4 (d+e x)}-\frac {5 d \left (a+b \log \left (c x^n\right )\right )^2}{3 e^5}+\frac {x \left (a+b \log \left (c x^n\right )\right )^2}{e^4}-\frac {d^4 \left (a+b \log \left (c x^n\right )\right )^2}{3 e^5 (d+e x)^3}+\frac {2 d^3 \left (a+b \log \left (c x^n\right )\right )^2}{e^5 (d+e x)^2}+\frac {6 d x \left (a+b \log \left (c x^n\right )\right )^2}{e^4 (d+e x)}-\frac {3 b^2 d n^2 \log (d+e x)}{e^5}-\frac {26 b d n \left (a+b \log \left (c x^n\right )\right ) \log \left (1+\frac {e x}{d}\right )}{3 e^5}-\frac {4 d \left (a+b \log \left (c x^n\right )\right )^2 \log \left (1+\frac {e x}{d}\right )}{e^5}-\frac {26 b^2 d n^2 \text {Li}_2\left (-\frac {e x}{d}\right )}{3 e^5}-\frac {8 b d n \left (a+b \log \left (c x^n\right )\right ) \text {Li}_2\left (-\frac {e x}{d}\right )}{e^5}+\frac {8 b^2 d n^2 \text {Li}_3\left (-\frac {e x}{d}\right )}{e^5}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.44, size = 344, normalized size = 0.86 \begin {gather*} -\frac {-\frac {b d^3 n \left (a+b \log \left (c x^n\right )\right )}{(d+e x)^2}+\frac {10 b d^2 n \left (a+b \log \left (c x^n\right )\right )}{d+e x}-13 d \left (a+b \log \left (c x^n\right )\right )^2-3 e x \left (a+b \log \left (c x^n\right )\right )^2+\frac {d^4 \left (a+b \log \left (c x^n\right )\right )^2}{(d+e x)^3}-\frac {6 d^3 \left (a+b \log \left (c x^n\right )\right )^2}{(d+e x)^2}+\frac {18 d^2 \left (a+b \log \left (c x^n\right )\right )^2}{d+e x}+6 b e n x \left (a-b n+b \log \left (c x^n\right )\right )-10 b^2 d n^2 (\log (x)-\log (d+e x))+\frac {b^2 d n^2 (d+(d+e x) \log (x)-(d+e x) \log (d+e x))}{d+e x}+26 b d n \left (a+b \log \left (c x^n\right )\right ) \log \left (1+\frac {e x}{d}\right )+12 d \left (a+b \log \left (c x^n\right )\right )^2 \log \left (1+\frac {e x}{d}\right )+26 b^2 d n^2 \text {Li}_2\left (-\frac {e x}{d}\right )+24 b d n \left (a+b \log \left (c x^n\right )\right ) \text {Li}_2\left (-\frac {e x}{d}\right )-24 b^2 d n^2 \text {Li}_3\left (-\frac {e x}{d}\right )}{3 e^5} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 0.23, size = 6114, normalized size = 15.36
method | result | size |
risch | \(\text {Expression too large to display}\) | \(6114\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x^{4} \left (a + b \log {\left (c x^{n} \right )}\right )^{2}}{\left (d + e x\right )^{4}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {x^4\,{\left (a+b\,\ln \left (c\,x^n\right )\right )}^2}{{\left (d+e\,x\right )}^4} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________